home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyo (Python 2.5)
-
- from datetime import datetime
- from util import Storage, curly
-
- class Message(Storage):
-
- def __init__(self, buddy = None, message = None, conversation = None, type = 'incoming', timestamp = None, **other):
- self.buddy = buddy
- self.message = message
- self.type = type
- self.conversation = conversation
- self.timestamp = None if timestamp is not None else datetime.utcnow()
- self.update(other)
-
-
- def copy(self):
- m = Message()
- m.update(self)
- return m
-
-
-
- class StatusUpdateMessage(Message):
-
- def __init__(self, **info):
- buddy = info['buddy']
- message = curly(info['header'], source = info)
- Message.__init__(self, buddy = buddy, message = message, type = 'status')
-
-
-